package jnpf.controller;

import jnpf.base.ActionResult;
import jnpf.model.UpdateMeeting.dto.MeetingUpdateDTO;
import jnpf.service.UpdateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/bt/update")
public class UpdateController {

    // *更新
    @Autowired
    private UpdateService updateService;

    @PostMapping("/updateMeeting")
    public ActionResult updateMeeting(@RequestBody MeetingUpdateDTO meetingUpdateDTO) {
        return ActionResult.success(updateService.updateMeeting(meetingUpdateDTO));
    }

}
